
public class BeatController implements ControllerInterface{

	BeatModelInterface beatModel;
	DJView dj;
	
	public BeatController( BeatModelInterface model )
	{
		beatModel = model;
		
		dj = new DJView(this,beatModel );
		dj.createView();
		dj.createControls();
		dj.enableStartMenuItem();
		dj.disableStartMenuItem();
		//dj.updateBeat();
		//dj.updateBPM();
		beatModel.initialize();
	}
	
	public void increaseBPM(){
		beatModel.setBPM(beatModel.getBPM()+1);
	}
	public void decreaseBPM(){
		beatModel.setBPM(beatModel.getBPM()-1);
	}
	public void start(){
		beatModel.on();
	}
	public void stop(){
		beatModel.off();
	}
	public void setBPM(int bpm ){
		beatModel.setBPM(bpm);
	}
}
